package com.young.jpademo2.service;

public class HelloService {
    //消息内容
    public String msg;
    //是否显示消息内容
    public boolean show=true;

    public String sayHello(){
        return show ? "Hello,"+msg:"Hidden";
    }

    public void setMsg(String msg){
        this.msg=msg;
    }

    public void setShow(boolean show){
        this.show=show;
    }
}
